import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Zhu",
    component: () =>
      import(/* webpackChunkName: "zhu" */ "../views/Zhuzexuan.vue")
  },
  {
    path: "/sun",
    name: "Sun",
    component: () =>
      import(/* webpackChunkName: "sun" */ "../views/Sunweiqiang.vue")
  },
  {
    path: "/xu",
    name: "Xu",
    component: () => import(/* webpackChunkName: "xu" */ "../views/Xuting.vue")
  },
  {
    path: "/detail/:id",
    component: () => import(/*webpackChunkName:'detail' */ "../views/Detail/")
  },
  {
    path: "/lm/:id",
    component: () => import(/*webpackChunkName:'detail' */ "../views/Lm/")
  }
];

const router = new VueRouter({
  routes
});

export default router;
